package com.polytech.beans;

import java.util.Date;

public class Booking {

	private int id;
	private Date bookingDate;
	private Date returnDate;
	private Client client;
	private Car car;
	public static int INC=0;
	
	
	public Booking(Date bookingDate, Date returnDate, Client client, Car car) {
		super();
		this.bookingDate = bookingDate;
		this.returnDate = returnDate;
		this.setClient(client);
		this.car = car;
		id=INC++;
	}

	public Booking() {

	}

	
	public Car getCar() {
		return car;
	}
	
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getBookingDate() {
		return bookingDate;
	}

	public void setBookingDate(Date bookingDate) {
		this.bookingDate = bookingDate;
	}

	
	public Date getReturnDate() {
		return returnDate;
	}

	public void setReturnDate(Date returnDate) {
		this.returnDate = returnDate;
	}

	public Client getClient() {
		return client;
	}

	public void setClient(Client client) {
		this.client = client;
	}
	
	
}
